import configparser
from configparser import ConfigParser


class ReadConfig:

    def read_config(self, file_path, section, option):
        cf = configparser.ConfigParser()
        cf.read(file_path)
        return cf[section][option]


if __name__ == '__main__':
    print(ReadConfig().read_config("/Users/jiayunkong/work_space/pythonProject/conf/conf.ini", "MODE", "test_host"))
